package com.maidada.codesharebackend.model.dto.code;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 代码新增请求
 *
 * @author wulinxuan
 */
@Data
public class CodeAddRequest implements Serializable {

    /**
     * 代码标题
     */
    @NotBlank(message = "代码标题不能为空")
    private String title;

    /**
     * 代码内容
     */
    @NotBlank(message = "代码内容不能为空")
    private String content;

    /**
     * 标签(json数组)
     */
    private String tags;

    private static final long serialVersionUID = 1L;
}

